package org.hxyjs.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class ActCosttyperecord implements Serializable {
    private String afcno;

    private String afno;

    private String cono;

    private Date afcbegintime;

    private String afcprice;

    private Date afcendtime;

    private Date afcbegindate;

    private Date afcenddate;

    private static final long serialVersionUID = 1L;

    public String getAfcno() {
        return afcno;
    }

    public void setAfcno(String afcno) {
        this.afcno = afcno;
    }

    public String getAfno() {
        return afno;
    }

    public void setAfno(String afno) {
        this.afno = afno;
    }

    public String getCono() {
        return cono;
    }

    public void setCono(String cono) {
        this.cono = cono;
    }

    public Date getAfcbegintime() {
        return afcbegintime;
    }

    public void setAfcbegintime(Date afcbegintime) {
        this.afcbegintime = afcbegintime;
    }

    public String getAfcprice() {
        return afcprice;
    }

    public void setAfcprice(String afcprice) {
        this.afcprice = afcprice;
    }

    public Date getAfcendtime() {
        return afcendtime;
    }

    public void setAfcendtime(Date afcendtime) {
        this.afcendtime = afcendtime;
    }

    public Date getAfcbegindate() {
        return afcbegindate;
    }

    public void setAfcbegindate(Date afcbegindate) {
        this.afcbegindate = afcbegindate;
    }

    public Date getAfcenddate() {
        return afcenddate;
    }

    public void setAfcenddate(Date afcenddate) {
        this.afcenddate = afcenddate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ActCosttyperecord other = (ActCosttyperecord) that;
        return (this.getAfcno() == null ? other.getAfcno() == null : this.getAfcno().equals(other.getAfcno()))
            && (this.getAfno() == null ? other.getAfno() == null : this.getAfno().equals(other.getAfno()))
            && (this.getCono() == null ? other.getCono() == null : this.getCono().equals(other.getCono()))
            && (this.getAfcbegintime() == null ? other.getAfcbegintime() == null : this.getAfcbegintime().equals(other.getAfcbegintime()))
            && (this.getAfcprice() == null ? other.getAfcprice() == null : this.getAfcprice().equals(other.getAfcprice()))
            && (this.getAfcendtime() == null ? other.getAfcendtime() == null : this.getAfcendtime().equals(other.getAfcendtime()))
            && (this.getAfcbegindate() == null ? other.getAfcbegindate() == null : this.getAfcbegindate().equals(other.getAfcbegindate()))
            && (this.getAfcenddate() == null ? other.getAfcenddate() == null : this.getAfcenddate().equals(other.getAfcenddate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAfcno() == null) ? 0 : getAfcno().hashCode());
        result = prime * result + ((getAfno() == null) ? 0 : getAfno().hashCode());
        result = prime * result + ((getCono() == null) ? 0 : getCono().hashCode());
        result = prime * result + ((getAfcbegintime() == null) ? 0 : getAfcbegintime().hashCode());
        result = prime * result + ((getAfcprice() == null) ? 0 : getAfcprice().hashCode());
        result = prime * result + ((getAfcendtime() == null) ? 0 : getAfcendtime().hashCode());
        result = prime * result + ((getAfcbegindate() == null) ? 0 : getAfcbegindate().hashCode());
        result = prime * result + ((getAfcenddate() == null) ? 0 : getAfcenddate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", afcno=").append(afcno);
        sb.append(", afno=").append(afno);
        sb.append(", cono=").append(cono);
        sb.append(", afcbegintime=").append(afcbegintime);
        sb.append(", afcprice=").append(afcprice);
        sb.append(", afcendtime=").append(afcendtime);
        sb.append(", afcbegindate=").append(afcbegindate);
        sb.append(", afcenddate=").append(afcenddate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}